package com.lujieni.springbootnacos.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NameController {

    @Value("${name:lujieni}")
    private String name;

    @Value("${age:34}")
    private String age;

    @GetMapping("/name")
    public String name(){
        return name;
    }

    @GetMapping("/age")
    public String age(){
        return age;
    }

}
